import {CardModel} from '../db/models/cardModel';
import {UserModel} from '../db/models/userModel';

export function useMyProfile() {
  const getUserTotalNumber = async () => {
    const userModel = new UserModel();
    return await userModel.getTotalNumber();
  };

  const getCardTotalNumber = async () => {
    const cardModel = new CardModel();
    return await cardModel.getTotalNumber();
  };

  return {
    getUserTotalNumber,
    getCardTotalNumber,
  };
}
